*{
  margin: 0;
  padding: 0;
}
div, ul, p, li {
  box-sizing: border-box;
}
ul,ol{
  list-style: none;
}
a{
  text-decoration: none;
}
i,em{
  font-style: normal;
}

html,body{
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}


/* 网页头部 */
header{
  height: 160px;
  background-color: #fff;
  .header-wrap{
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    // border: 1px solid black;
    .back-index{
      float: left;
      overflow: hidden;
      width: 257px;
      height: 100%;
      // margin-top: 5px;
      padding: 0 20px;  
      margin-right: 95px;
      a{
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .logo{
          img{
            width: 75px;
            height: 75px;
          }
        }
      }
    }

    .search{
      float: left;
      width: 534px;
      height: 100%;
      display: flex;
      align-items: center;
      
      
      .s-wrap{
        width: 100%;
        height: 46px;
        display: flex;
        align-items: center;
        border: 2px solid #222;
        border-radius: 34px;
        margin-bottom: 15px;
        padding-right: 2px;

        span{
          font-size: 24px !important;
          margin: 0 14px;
          color: #877a73;
        }
        input{
        flex: 1;
        height: 100%;
        border: none;
        font-size: 16px;
        outline: none;
        }

        a{
          width: 135px;
          height: 37PX;
          line-height: 37px;
          text-align: center;
          font-size: 16px;
          background-color: #fee44e;
          border-radius: 34px;
          margin-right: 2px;
          cursor: pointer;
        }
        .s-history{
          display: none;
        }
      }
    } 
    
    
    .tips{
      float: right;
      width: 312px;
      height: 100%;
      display: flex;
      align-items: center;
      padding-left: 28px;
      li{
        width: 78px;
        height: 60px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;

        img{
          width: 40px;
          height: 40px;
        }

        span{
          font-size: 13px;
          color: #877a73;
        }
      }
    }
  }


}

/* 导航区域 */
.nav{
  width: 100%;
  height: 47px;
  background-color: #43240c;
  
  .nav-wrap{
    width: 1200px;
    height: 100%;
    margin: 0 auto;

    ul{
      display: flex;

      .active{
        background-color: #fee44e;
        color: #43240c;
      }

      >li{
        color: #fff;
        width: 166px;
        text-align: center;
        line-height: 47px;
        font-size: 16px;
        cursor: pointer;

        &:nth-child(1){
          width: 220px;
        }

        &:hover{
          background-color: #fee44e;
        color: #43240c;
        }
      }
    }
  }
}

/* 内容区域 */
.container{
  width: 100%;
  .content-wrap{
    width: 1200px;
    margin: 0 auto;

    .content-title{
      height: 56px;
      background-color: rgb(254, 249, 221);
      line-height: 56px;
      padding-left: 20px ;
    }

    .content-menu{
      // height: 56px;
      width: 100%;
      background-color: lightcyan;

      ol{
        height: 56px;
        font-size: 18px;
        line-height: 56px;
        display: flex;
        align-items: center;
        padding-left: 20px;
        color: rgb(67, 36, 12);
        li{
          height: 40px;
          line-height: 40px;
          margin-right: 20px;
          padding: 0 8px;
          cursor: pointer;
          &:hover{
            background: hotpink;
            color: #fff;
          }
        }
        .ac{
          background: hotpink;
          color: #fff;
        }
      }
    }
    .show-list{
      width: 1168px;
  
      margin: 0 auto;
      margin-top: 20px;
      
  
      .show-item{
        width: 276px;
        height: 389px;
        margin: 0 21px 21px 0;
        cursor: pointer;
        transition: all .3s;
        float: left;
        
        &:nth-child(4n+4){
          margin-right: 0;
        }
  
        .show-img{
          img{
            width: 276px;
            height: 276px;
          }
        }
  
        .show-msg{
          padding: 10px 17px 17px 17px;
  
          .show-title{
            overflow: hidden;
            font-size: 14px;
            line-height: 18px;
            white-space: nowrap; // 元素内的空白默认忽略
            text-overflow: ellipsis; // 超出文本显示为省略号
            color: #877a73;
          }
  
          .show-keyword{
            margin: 16px auto 0;
            position: relative;
            height: 20px;
  
            .keyword{
              float: left;
              margin: 0 6px 0 0;
              padding: 0 6px;
              line-height: 20px;
              font-size: 14px;
              color: #ff9000;
              vertical-align: middle;
              border-radius: 2px;
              box-shadow: inset 0 0 0 1px #ff9000;
            }
  
            .taobao{
              height: 20px;
              line-height: 20px;
              padding: 0 5px;
              background-color: #f40;
              color: #fff;
              border-radius: 2px;
              font-size: 14px;
              text-align: center;
              float: left; // 为什么要加浮动才能拿居中呢
            }
  
            .free-postage{
              font-size: 14px;
              text-align: center;
              color: #877a73;
              position: absolute;
              right: 0;
              box-shadow: none;
            }
          }
  
          .show-foot{
            margin-top: 14px;
            height: 28px;
            text-align: left;
            position: relative;
  
            .left{
              .price{
                color: #fa585a;
                font-weight: 400px;
               
                >span{
                  display: inline-block;
                }
                .price-tag{
                  font-size: 12px;
                  line-height: 12px;
                }
  
                .price-strong{
                  font-size: 28px;
                  line-height: 28px;
                  
                }
  
                .digit{
                  font-size: 18px;
                  line-height: 20px;
                }
              }
            }
  
            .sale-num{
              display: inline-block;
              line-height: 20px;
              font-size: 14px;
              color: #877a73;
            }
          }
  
          .coupon-value{
            position: absolute;
            bottom: 1px;
            right: 0;
            width: 50px;
            font-size: 12px;
            color: #fa585a;
            border-radius: 2px;
            text-align: center;
            box-shadow: inset 0 0 0 1px #fa585a;
          }
        }
      }
    }
  }
}